<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .a,.b,.c,.d{
      margin: 0px auto;
    }
    div{
      margin: 10px 10px;
      width: 100px;
      height: 100px;
      background-color: aqua;
      transform-origin: left bottom;
      transition: all .6s;
    }
    /* .a:hover{
      transform: translate(100px,100px);
    } */
    .b:hover{
      transform: scale(2,2);
      transform: translateX(-180px);
    }
    .c:hover{
      transform: rotate(180deg);
    }
    @keyframes action{
      0%{
        transform: scale(1,1);
        width: 100px;
      }
      100%{
        transform: scale(2.2);
        width: 200px;
      }
    }
    .e{
      width: 100px;
      height: 100px;
      background-color: aqua;
      animation-name: action;
      animation-duration: 3s;
      animation-iteration-count: infinite;
    }
  </style>
</head>
<body>
  <div class="a">1</div>
  <div class="b">2</div>
  <div class="c">3</div>
  <div class="d">4</div>
  <div class="e">5</div>
</body>
</html>